package com.lnsoft.dqfs.server.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.lnsoft.dqfs.server.handle.threadpools.ServiceInvokePools;

@Component
public class ScheduleDeCrypt {

	@Autowired
	ServiceInvokePools serviceInvokePools;

	@Value("${encryptedMessage.dir}")
	String fileDirPath;

	//	定时任务调度执行任务到线程池
//	@Scheduled(cron = "0 45 3 * * ?")     // 每天的3:45 执行
	public void scheduleDeCrypt() {
		serviceInvokePools.poolsInvokeDeCrypt(fileDirPath);
	}
}
